package org.kotboot.kit;
/**
 * jisong.sun 2017/9/15 11:16
 */
public class PwdKit {

    public static String generateSalt(){
        return MD5.generateSalt();
    }

    public static boolean equals(String orgPwd,String pwd,String salt){
        String encoder = MD5.encoder(orgPwd + salt);
        return encoder.equals(pwd);
    }
}
